<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Btn</title>
    <style type="text/css">

        .button {
            width: 200px;
            font-size: 25px;
            line-height: 25px;
            margin: 5px;
            background-color: #4CAF50;
            color: white;
            transition-duration: 0.5s;
            border: none;
            border-radius: 12px;
            padding: 20px;
            cursor: pointer;
            box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
            position: relative;
        }

        .button:hover {
            background-color: #3e8e41;
        }

        .button:active {
            transform: translateY(5px);
            /*animation: wave 3s linear;*/
        }

        .button > span:after {
            content: '»';
            opacity: 0;
            position: absolute;
            right: 10px;
        }

        .button:hover > span:after {
            opacity: 1;
            right: 32px;
            transition: 1s;
        }

        .wave {
            border-radius: 50%;
            position: absolute;
            top:50%;
            margin-top: -200px;
            left: 50%;
            margin-left: -200px;
            background: #fff;
            width: 400px;
            height: 400px;
            transform: scale(0.01);
            opacity: 0;
        }

        @keyframes wave {
            20% {
                transform: scale(0.2);
                opacity: 0.8;
            }
            40% {
                transform: scale(0.4);
                opacity: 0.6;
            }
            60% {
                transform: scale(0.6);
                opacity: 0.4;
            }
            80% {
                transform: scale(0.8);
                opacity: 0.2;
            }
            100% {
                transform: scale(1);
                opacity: 0;
            }
        }
    </style>
</head>
<body>
<button class="button">
    <span>动效按钮</span>
    <div class="wave"></div>
</button>
</body>
</html>
